package com.meetingshow.commu.uiservice.model;

import java.util.Date;

import com.meetingshow.common.base.uiservice.model.BaseVO;
import com.meetingshow.commu.dao.model.QuestionPO;

public class QuestionVO extends BaseVO {
    /**
     * 
     */
    private static final long serialVersionUID = 6346225319328761752L;
    
    private Integer questionId;
    private String content;
    private Date createTime;
    private Integer fromUserId;
    private String fromUserName;
    private Integer topicId;
    private String topicName;
    private Integer toUserId;
    private String toUserName;
    private String toWeiboName;
    private String statusId;
    
    public QuestionVO() {
    }

    public QuestionVO(QuestionPO questionPO) {
        setQuestionId(questionPO.getQuestionId());
        setContent(questionPO.getContent());
        setCreateTime(questionPO.getCreateTime());
        setFromUserId(questionPO.getFromUserId());
        setFromUserName(questionPO.getFromUserName());
        setTopicId(questionPO.getTopicId());
        setTopicName(questionPO.getTopicName());
        setToUserId(questionPO.getToUserId());
        setToUserName(questionPO.getToUserName());
        setToWeiboName(questionPO.getToWeiboName());
        setStatusId(questionPO.getStatusId());
    }
    
    public QuestionPO toQuestionPO() {
        QuestionPO questionPO = new QuestionPO();
        
        questionPO.setQuestionId(getQuestionId());
        questionPO.setContent(getContent());
        questionPO.setCreateTime(getCreateTime());
        questionPO.setFromUserId(getFromUserId());
        questionPO.setFromUserName(getFromUserName());
        questionPO.setTopicId(getTopicId());
        questionPO.setTopicName(getTopicName());
        questionPO.setToUserId(getToUserId());
        questionPO.setToUserName(getToUserName());
        questionPO.setToWeiboName(getToWeiboName());
        questionPO.setStatusId(getStatusId());
        
        return questionPO;
    }
    
    public Integer getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Integer questionId) {
        this.questionId = questionId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(Integer fromUserId) {
        this.fromUserId = fromUserId;
    }

    public String getFromUserName() {
        return fromUserName;
    }

    public void setFromUserName(String fromUserName) {
        this.fromUserName = fromUserName;
    }

    public Integer getTopicId() {
        return topicId;
    }

    public void setTopicId(Integer topicId) {
        this.topicId = topicId;
    }

    public String getTopicName() {
        return topicName;
    }

    public void setTopicName(String topicName) {
        this.topicName = topicName;
    }

    public Integer getToUserId() {
        return toUserId;
    }

    public void setToUserId(Integer toUserId) {
        this.toUserId = toUserId;
    }

    public String getToUserName() {
        return toUserName;
    }

    public void setToUserName(String toUserName) {
        this.toUserName = toUserName;
    }

    public String getToWeiboName() {
        return toWeiboName;
    }

    public void setToWeiboName(String toWeiboName) {
        this.toWeiboName = toWeiboName;
    }
    
    public String getStatusId() {
        return statusId;
    }

    public void setStatusId(String statusId) {
        this.statusId = statusId;
    }
}
